package io.renren.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import io.renren.dao.OrdersDao;
import io.renren.entity.OrdersproductEntity;
import io.renren.service.OrdersService;
import org.springframework.stereotype.Service;
import io.renren.entity.OrdersEntity;

import java.util.List;


@Service("orderService")
public class OrdersServiceImpl extends ServiceImpl<OrdersDao, OrdersEntity> implements OrdersService {

    @Override
    public List<OrdersEntity> getOrderList(Integer userid,Integer type){
        List<OrdersEntity> list = baseMapper.getOrderList(userid,type);
        return list;
    }

    @Override
    public List<OrdersproductEntity> getOrderProductByOrderNum(String orderNum){
        List<OrdersproductEntity> list = baseMapper.getOrderProductByOrderNum(orderNum);
        return list;
    }

}
